import {getInput, getSelect, createIdAndKey} from './create.js'

// 工单内容配置 【左面板】
export default [
    {
      __config__: {
        label: "卡片名称",
        layout: "tsCard",
        labelWidth: "120px",
        showLabel: false,
        tag: "el-card",
        tagIcon: "card",
        defaultValue: undefined,
        showSpanChange: false,
        span: 24,
        children: {
          span: 24,
          cardHeader: [],
          cardBody: [],
        },
      },
    },
    {
      __config__: {
        label: "预设模块",
        layout: "tsCard",
        labelWidth: "120px",
        showLabel: false,
        tag: "el-card",
        tagIcon: "card",
        defaultValue: undefined,
        showSpanChange: false,
        showLabelChange: false,
        span: 24,
        children: {
          span: 24,
          cardHeader: [
            createIdAndKey(getInput({
              __config__: {label: '模板名称'},placeholder: '请输入'
            })),
            createIdAndKey(getSelect({
              __config__: {label: '填写阶段'},__slot__: {
                options: [
                  {
                    label: "创建阶段",
                    value: 1,
                  },
                  {
                    label: "受理阶段",
                    value: 2,
                  },
                  {
                    label: "分配阶段",
                    value: 3,
                  },
                  {
                    label: "处理阶段",
                    value: 4,
                  },
                  {
                    label: "关闭阶段",
                    value: 5,
                  },
                ],
              },
            }))
          ],
          cardBody: [],
        },
      },
    },
  ];

